<?php
$this->breadcrumbs = array(
    'Episodes' => array('index'),
    $model->id => array('view', 'id' => $model->id),
    'Update',
);

$this->menu = array(
    array('label' => 'List Episode', 'url' => array('index')),
    array('label' => 'View Episode', 'url' => array('view', 'id' => $model->id)),
    array('label' => 'Manage Episode', 'url' => array('admin')),
);
?>

<h1><?php echo $model->name_vn . ' - Tập ' . $model->no_episode; ?></h1>

<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'episode-form',
    'enableAjaxValidation' => false,
        ));
?>

<p class="help-block">Fields with <span class="required">*</span> are required.</p>

<?php echo $form->errorSummary($model); ?>

<?php echo $form->textFieldRow($model, 'name_vn', array('class' => 'span5', 'maxlength' => 100)); ?>

<?php echo $form->textFieldRow($model, 'name_en', array('class' => 'span5', 'maxlength' => 100)); ?>

<?php echo $form->textFieldRow($model, 'link', array('class' => 'span5', 'maxlength' => 200)); ?>

<?php echo $form->dropDownListRow($model, 'local_id', CHtml::listData($locals, 'id', 'name'), array('class' => 'span2')); ?>

<?php echo $form->dropDownListRow($model, 'status', array(0 => 'Lock', 1 => 'Active'), array('class' => 'span2')); ?>

<div class="form-actions">
    <?php
    $this->widget('bootstrap.widgets.TbButton', array(
        'buttonType' => 'submit',
        'type' => 'primary',
        'label' => $model->isNewRecord ? 'Create' : 'Save',
    ));
    ?>
</div>

<?php $this->endWidget(); ?>
